class Tag < ActiveRecord::Base
  has_and_belongs_to_many :images, :order => "images.created_at DESC"
  has_and_belongs_to_many :posts, :order => "posts.created_at DESC"

  def to_param
    "#{name}"
  end
end
